
default_platform(:ios)

platform :ios do
  desc "测试包，上传到蒲公英"
  lane :adhoc do 
    gym(
    clean: true,    
    output_directory: 'IPA', 
    output_name: 'Easepods', 
    scheme: "Easepods",       
    configuration: 'Release', 
    include_bitcode: false,  
    include_symbols: true, 
    # 打包导出方式，包含 app-store, validation, ad-hoc, package, enterprise, development, developer-id and mac-application   
    export_method: 'ad-hoc',  
    # 这个设置是为了设置 xcode 自动配置证书和配置文件，当然也可以手动配置，可以参考文档
    export_xcargs: '-allowProvisioningUpdates' 
    )
    # mac上的通知弹窗，通知打包完毕
    notification(app_icon: "./fastlane/icon.png", title: "manager", subtitle: "打包成功，已导出安装包", message: "准备发布到蒲公英中……")
       pgyer(api_key: "302e7e7c67786187e2dbbdc93f6e3a6a")
  end
end